import request from '@/utils/request'

// 查询渠道商佣金记录列表
export function listChannelConsumeDetail(query) {
  return request({
    url: '/channelConsumeDetail/channelConsumeDetail/list',
    method: 'get',
    params: query
  })
}

// 查询渠道商佣金记录详细
export function getChannelConsumeDetail(id) {
  return request({
    url: '/channelConsumeDetail/channelConsumeDetail/' + id,
    method: 'get'
  })
}

// 新增渠道商佣金记录
export function addChannelConsumeDetail(data) {
  return request({
    url: '/channelConsumeDetail/channelConsumeDetail',
    method: 'post',
    data: data
  })
}

// 修改渠道商佣金记录
export function updateChannelConsumeDetail(data) {
  return request({
    url: '/channelConsumeDetail/channelConsumeDetail',
    method: 'put',
    data: data
  })
}

// 删除渠道商佣金记录
export function delChannelConsumeDetail(id) {
  return request({
    url: '/channelConsumeDetail/channelConsumeDetail/' + id,
    method: 'delete'
  })
}
